<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\UserBalanceFlow
 *
 * @property int $id
 * @property string $user_id 用户ID
 * @property string $title 标题
 * @property int $type 0充值，1消费
 * @property int|null $from 充值渠道，0现金，1微信
 * @property string $balance 金额
 * @property string $balance_rest 当前余额
 * @property string $operator 操作人 ID
 * @property string|null $comment
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property \Illuminate\Support\Carbon|null $deleted_at
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow onlyTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow query()
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow whereBalance($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow whereBalanceRest($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow whereComment($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow whereFrom($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow whereOperator($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow whereTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow whereUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow withTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|UserBalanceFlow withoutTrashed()
 * @mixin \Eloquent
 */
class UserBalanceFlow extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'user_balance_flow';
    
}
